<html>
<head></head>
<body>

<div>
    <p>xxxx</p>
    xxx:<br/> <input type="text" id="xxx" placeholder="xxx" value="xxx"><br/>
    <input type="submit" id="yyy" value="zzz">
</div>

</body>

<script src="/js/jquery.js"></script>
<script src="/js/index.js"></script>
<script>
    $('#yyy').on('click', function () {
        xxx(xxx, function (err, data) {
            if (err) return console.log('err ', err);
            console.log(data);
        });
    });

</script>
</html>